Fix an out-of-bounds access in MyEnhancedXkbTranslateKeyCode
authorMatthias Clasen <mclasen@redhat.com>
Mon, 27 Oct 2014 01:48:59 +0000 (21:48 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 27 Oct 2014 01:48:59 +0000 (21:48 -0400)
commite75310a445f019cd4ef27a87c3da57b6891d7c69
tree7304ad63cb3e579875bbc798dd71bb2648bd279a
parentf7813deb266c46495b67940771662a6fabea3d29
Fix an out-of-bounds access in MyEnhancedXkbTranslateKeyCode

Commits 314b6abbe8d8daae and eb9223c008ccf1c2faab were ignoring
the fact that the code where found is set to 1 was modifying
col - which was an ok thing to do when that part of the code
was still breaking out of the loop, but it is no longer doing
that (since 2003 !). Fix things up by storing the final col
value in a separate variable and using that after the loop.

https://bugzilla.gnome.org/show_bug.cgi?id=738886
gdk/x11/gdkkeys-x11.c